package mortal.game.resource.info
{
	import Message.Db.Tables.*;
	import mortal.game.scene.player.info.*;
	
	public class ItemInfo extends ModelInfo
	{
		public var item:TItem;
		public var extend:Object;
		
		public function ItemInfo()
		{
			
		}
		
		public function get url() : String
		{
			return this.item.icon + ".jpg";
		}
		
		override public function get modelId() : String
		{
			if (this.extend is TItemMount)
			{
				return (this.extend as TItemMount).modelId;
			}
			if (this.extend is TItemWeapon)
			{
				return (this.extend as TItemWeapon).modelId;
			}
			return "";
		}
		
		public function get type() : int
		{
			if (this.extend is TItemMount)
			{
				return (this.extend as TItemMount).type;
			}
			if (this.extend is TItemWeapon)
			{
				return (this.extend as TItemWeapon).type;
			}
			return -1;
		}
		
		public function get normalTooltip() : String
		{
			return "";
		}
		
		public function get tooltip1() : String
		{
			return "";
		}
		
		public function get tooltip2() : String
		{
			return "";
		}
		
	}
}
